package de.lot.auth;

import org.jboss.seam.annotations.Name;

/**
 * PasswordBean handles the inserted password and checks if it is the same
 * as the password entered in the confirm box; Trying to ensure there are no
 * typos.
 *
 * @author Stefan Kohler <kohler.stefan@gmail.com>
 */
@Name("passwordBean")
public class PasswordBean {

    private String password;
    private String confirm;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirm() {
        return confirm;
    }

    public void setConfirm(String confirm) {
        this.confirm = confirm;
    }
    
    public boolean verify() {
        return confirm != null && confirm.equals(password);
    }

}
